//package com.alaia.alaiagateway.config;
//
//
//import org.springframework.cloud.gateway.route.RouteLocator;
//import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @author wut
// * @Description   通过9527网关访问到外网的百度新闻网址
// * @create 2020/6/24
// */
//@Configuration
//public class GateWayConfig {
//
//    @Bean
//    public RouteLocator customRouteLocator2(RouteLocatorBuilder builder) {
//        RouteLocatorBuilder.Builder routes = builder.routes();
//        routes.route("generator-center", r ->r.path("/guonei").uri("http://news.baidu.com/guonei")).build();
//        return routes.build();
//    }
//
//    @Bean
//    public RouteLocator routes(RouteLocatorBuilder builder){
//        RouteLocatorBuilder.Builder routes = builder.routes();
//        routes.route("path_route_baidu1", r ->r.path("/mil").uri("http://news.baidu.com/mil")).build();
//        return routes.build();
//    }
//
//}
//
////    @Bean
////    public RouteLocator customRouteLocator(RouteLocatorBuilder routeLocatorBuilder){
////        RouteLocatorBuilder.Builder routes = routeLocatorBuilder.routes();
////        routes.route("path_rote_atguigu", r -> r.path("guonei").uri("http://news.baidu.com/guonei")).build();
////        return routes.build();
////    }
//
////    @Bean
////    public RouteLocator customRouteLocator(RouteLocatorBuilder routeLocatorBuilder) {
////        RouteLocatorBuilder.Builder routes = routeLocatorBuilder.routes();
////        routes.route("path_rote_atguigu", r -> r.path("/guonei").uri("http://news.baidu.com/guonei")).build();
////        return routes.build();
////    }
//
